<?php include("../../includes/includes.php"); ?>
<?
connect($config);
$loggedInTeam = getLoggedInTeam();

$playerOneId = $_POST['playerOne'];
$playerTwoId = $_POST['availPlayers'];
$reasonType = $_POST['reasonType'];
$source = $_POST['source'];

if ($loggedInTeam != null) {
	createLTISpud($playerOneId, $playerTwoId, $reasonType, $source, $loggedInTeam->id);
	updateTradesForRound($loggedInTeam->id);
}
mysql_close();

header( 'Location: homePage.php' ); 
?>